package com.imooc.newretail.smartcabinet.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 实时状态
 * </p>
 *
 * @author Hank
 * @since 2020-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("IOT_REAL_TIME_STATUS")
@ApiModel(value="IotRealTimeStatus对象", description="实时状态")
public class IotRealTimeStatus implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("REAL_TIME_ID")
    private String realTimeId;


    @ApiModelProperty(value = "主键")
    @TableField("CABINET_ID")
    private String cabinetId;


    @ApiModelProperty(value = "在线状态：0在线,1离线")
    @TableField("ONLINE")
    private Integer online;


    @ApiModelProperty(value = "开门状态：0开门，1未开门")
    @TableField("OPEN_DOOR")
    private Integer openDoor;


    @ApiModelProperty(value = "光照")
    @TableField("LUMINANCE")
    private Float luminance;


    @ApiModelProperty(value = "温度")
    @TableField("TEMPERATURE")
    private Float temperature;


    @ApiModelProperty(value = "告警数")
    @TableField("ALERT_NUM")
    private Integer alertNum;


    @ApiModelProperty(value = "标签数")
    @TableField("LABLE_NUM")
    private Integer lableNum;


    @ApiModelProperty(value = "容量使用率")
    @TableField("CAPACITY_UTILIZATION")
    private Float capacityUtilization;


    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;


}
